﻿using System.Xml.Linq;

namespace BingSpatialDataServiceExcelAddin.BSDSTools.Models
{
    public class Constants
    {
        public const string BingDataSchemaType = "Bing Spatial Data Services, 1.0, {0}";
        public const string ColumnHeaderPattern = @"([a-zA-Z0-9_]+)\(([a-zA-Z0-9\.,]+)\)";
        public const string SixDigitAccuracyPattern = @"(\d{6})(\d+)";
        public const string ZeroDigitPattern = @"^0+\.?0*$";
        public const string AlphaNumericUndscorePattern = @"^[a-zA-Z0-9_]+$";

        public static class NameSpaces
        {
            public static XNamespace atom = "http://www.w3.org/2005/Atom";
            public static XNamespace app = "http://www.w3.org/2007/app";
            public static XNamespace bsi = "http://schemas.microsoft.com/bing/spatial/2010/11/odata";
        }
    }
}
